



import http from "@/api/public";

export default {
  findAll(query){
    return http.Get("/product/attr/findAll", {params:query});
  },
  findById(idMap){
    return http.Get("/product/attr/findById",{params:idMap});
  },
  save(obj){
    return http.Post("/product/attr/save",obj);
  },
  update(obj){
    return http.Post("/product/attr/update",obj);
  },
  delete(ids){
    return http.Post("/product/attr/delete",{"ids":ids});
  },
  findAttrByCatId(idMap){
    return http.Get("/product/attr/findAttrByCatId",{params:idMap});
  },
}
